repo+tests: Add [core]disable-xattrs=true, use it on overlayfs
authorColin Walters <walters@verbum.org>
Fri, 24 Mar 2017 14:35:59 +0000 (10:35 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 24 Mar 2017 22:16:43 +0000 (22:16 +0000)
commit455cc5e8926350cf4386792090068ff71af08f15
tree9c626a9034e23257fbfbe0b5a99111416c1ab282
parent4d873389f0aae45e18c8c40b2b868b8264beaade
repo+tests: Add [core]disable-xattrs=true, use it on overlayfs

There are a lot of things suboptimal about this approach, but
on the other hand we need to get our CI back up and running.

The basic approach is to - in the test suite, detect if we're on overlayfs. If
so, set a flag in the repo, which gets picked up by a few strategic places in
the core to turn on "ignore xattrs".

I also had to add a variant of this for the sysroot work.

The core problem here is while overlayfs will let us read and
see the SELinux labels, it won't let us write them.

Down the line, we should improve this so that we can selectively ignore e.g.
`security.*` attributes but not `user.*` say.

Closes: https://github.com/ostreedev/ostree/issues/758
Closes: #759
Approved by: jlebon
40 files changed:
manual-tests/static-delta-generate-crosscheck.sh
src/libostree/ostree-diff.c
src/libostree/ostree-repo-commit.c
src/libostree/ostree-repo-private.h
src/libostree/ostree-repo.c
src/libostree/ostree-sysroot-deploy.c
src/libostree/ostree-sysroot-private.h
src/libostree/ostree-sysroot.c
tests/archive-test.sh
tests/basic-test.sh
tests/libostreetest.c
tests/libtest.sh
tests/pull-test.sh
tests/test-archivez.sh
tests/test-commit-sign.sh
tests/test-delta.sh
tests/test-demo-buildsystem.sh
tests/test-local-pull-depth.sh
tests/test-local-pull.sh
tests/test-oldstyle-partial.sh
tests/test-parent.sh
tests/test-prune.sh
tests/test-pull-commit-only.sh
tests/test-pull-contenturl.sh
tests/test-pull-corruption.sh
tests/test-pull-depth.sh
tests/test-pull-large-metadata.sh
tests/test-pull-metalink.sh
tests/test-pull-mirror-summary.sh
tests/test-pull-mirrorlist.sh
tests/test-pull-override-url.sh
tests/test-pull-repeated.sh
tests/test-pull-resume.sh
tests/test-pull-subpath.sh
tests/test-pull-summary-sigs.sh
tests/test-pull-untrusted.sh
tests/test-refs.sh
tests/test-remote-cookies.sh
tests/test-remote-headers.sh
tests/test-xattrs.sh